import Vue from 'vue'
import Router from 'vue-router'



Vue.use(Router)


export const constantRoutes = [
  {
    path: '',
    component: () => import('../components/HelloWorld.vue'),
    hidden: true
  },
  {
    path: '/Page2',
    component: () => import('../components/PageTwo.vue'),
   
  },
  {
    path: '/Page1',
    component:()=>import('../components/PageOne.vue')
  }
  ,
  {
    path: '/Page3',
    component:()=>import('../components/PageThree.vue')
  }
  ,
  {
    path: '/Page4',
    component:()=>import('../components/PageFour.vue')
  },
  {
    path: '/scanCode',
    component:()=>import('../components/scanCode.vue')
  }
  ,
  {
    path: '/Page5',
    component:()=>import('../components/PageFive.vue')
  }
  ,
  {
    path: '/Page6',
    component:()=>import('../components/PageSix.vue')
  }
  ,
  {
    path: '/Page7',
    component:()=>import('../components/PageSev.vue')
  }
  ,
  {
    path: '/Page8',
    component:()=>import('../components/PageEig.vue')
  }
  ,
  {
    path: '/Page9',
    component:()=>import('../components/PageNine.vue')
  },
  {
    path:'/PageTable',
    component:()=>import('../components/table.vue')
  },
  {
    path:'/PageTable2',
    component:()=>import('../components/table2.vue')
  }
]
export default new Router({
    mode: 'history', // 去掉url中的#
    scrollBehavior: () => ({ y: 0 }),
    routes: constantRoutes
  })